import request from '@utils/request'

// 查询列表信息
export function getForm (data) {
  return request({
    url: '/healthDorm/getPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 查询详情
export function getDetail (data) {
  return request({
    url: '/healthDorm/getHealthDetail',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}
// 导出评分
export function exportList (data) {
  return request({
    url: '/healthDorm/export',
    method: 'post',
    data: data,
    responseType: 'blob',
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}
